package org.zfes.snowier.zbss.xzy.biz.solution.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.core.data.ParamMap;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
import org.zfes.snowier.core.data.SelectVo;
import org.zfes.snowier.zbss.xzy.biz.solution.model.SolutionDeviceConfigValue;
@Mapper
public interface SolutionDeviceConfigValueMapper extends BaseMapper<SolutionDeviceConfigValue>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<SolutionDeviceConfigValue> selectModelListPage(ParamMap params);
	
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
	
    List<SelectVo> selectDropList(@Param("status")Byte status);

	List<SolutionDeviceConfigValue> selectDeviceSolutionConfigedValue(
			@Param("deviceId")Long deviceId,
			@Param("solutionId") Long solutionId, 
			@Param("algorithmId")Long algorithmId);

	SolutionDeviceConfigValue selectConfigValue(
			@Param("deviceId")Long deviceId,
			@Param("solutionId") Long solutionId, 
			@Param("algorithmId")Long algorithmId,
			@Param("itemId")Long itemId);
    
	int updateConfigValue(
			@Param("deviceId")Long deviceId,
			@Param("solutionId") Long solutionId, 
			@Param("algorithmId")Long algorithmId,
			@Param("itemId")Long itemId,
			@Param("cofvalue")String cofvalue);
}
